<body background="../images/body.png" style="background-position:top; background-repeat:repeat-y">
<center>
<div style="background-color:#FFFFFF; width:900; padding:30">
<?php

session_start();
function isAdmin($u,$p)
{
    include("./../includes/conf.inc");
    $id = mysql_connect($db_host,$db_usr,$db_pass) or die('Could not connect: ' . mysql_error());;
    mysql_select_db($db_name);
    $query = "SELECT * FROM admins WHERE name=$u AND pass=$p";
    $res = mysql_query($query);
    if (mysql_num_rows($res)==1) return true;
    return false;
}

if (isset($_POST['login']))
{
		$username = $_POST['name'];
		$pass = $_POST['pass'];
		if (isAdmin($usename,$pass))
		{     
		  $_SESSION["username"]= $username;
		}
}
else
{
  if (isset($_SESSION["username"]))
  {
		include("./includes/menu.inc");
	}
	else
	{
		include("./includes/login.inc");
	}
} 

?>

</div>
</center>
</body>